/* pages/home-school-export/home-school-export.wxss */
.document-wrapper {
  height: 100vh;
  width: 100vw;
  background-color: #f2f2f2;

  .option-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24rpx 20rpx;

    .option-view {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 140rpx;
      width: 100%;
      font-size: 34rpx;
      box-sizing: border-box;
      padding: 0 42rpx 0 88rpx;
    }

    .arrow {
      width: 50rpx;
      height: 50rpx;
      position: absolute;
      left: 45rpx;
    }

    .box {
      width: 100%;
      margin-bottom: 24rpx;
      border-radius: 30rpx;
      overflow: hidden;
      transition: 0.3s height ease-in-out;
    }

    .list {
      height: 300rpx;
      overflow: hidden;
    }

    .active {
      height: 460rpx !important;
    }

    .name {
      display: flex;
      align-items: center;
      width: 66vw;
      height: 100%;
      padding-left: 30rpx;
      padding-right: 30rpx;
      margin: 0 auto;
      font-size: 32rpx;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }


    .subject-box {
      @extend .box;
      background-color: #ffffff;
      height: 140rpx;
      box-sizing: border-box;


      .subject {
        @extend .option-view;

        view {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }

      .subject-list {
        @extend .list;

        .list-item {
          height: 96rpx;
          transition: 0.3s background-color ease-in-out;
          display: flex;
          align-items: center;
          position: relative;

          .name {
            @extend .name;
            border-bottom: 1rpx solid #e9e9e9;
          }

          .yes {
            position: absolute;
            width: 50rpx;
            height: 50rpx;
            right: 25rpx;
          }
        }

        .subject-selected {
          background-color: #f2e5c6;
        }
      }
    }

    .grade-box {
      @extend .box;
      height: 140rpx;
      background-color: #5a83bf;
      box-sizing: border-box;

      .grade {
        @extend .option-view;
        color: #eff2f7;
      }

      .grade-list {
        @extend .list;

        .list-item {
          height: 96rpx;
          display: flex;
          transition: 0.3s background-color ease-in-out;
          align-items: center;
          position: relative;

          .name {
            @extend .name;
            color: #eff2f7;
            border-bottom: 1rpx solid #7b9bcb;
          }

          .yes {
            position: absolute;
            width: 50rpx;
            height: 50rpx;
            right: 25rpx;
          }
        }

        .grade-selected {
          background-color: #ffffff;

          .name {
            color: #222222;
          }
        }
      }
    }

    .student-box {
      @extend .box;
      background-color: #f2e4c6;

      .student {
        @extend .option-view;
        height: 140rpx;
      }
    }

    .tip-box {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 18rpx;

      image {
        width: 40rpx;
        height: 40rpx;
      }

      .tip {
        margin-left: 20rpx;
        color: #6d6d6d;
      }
    }
  }

  .export-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 92vw;
    height: 100rpx;
    border-radius: 32rpx;
    background-color: #5a83bf;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fdfdfe;
    font-size: 32rpx;
    margin-bottom: calc(env(safe-area-inset-bottom));
  }
}